import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import { Message, MessageBox, Loading } from 'element-ui'
import {VueEditor} from 'vue2-editor'

Vue.config.productionTip = false
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Vue.use(Loading.directive)
Vue.component('vue-editor', VueEditor)

Vue.prototype.imgPath = (path) => { 
  return 'http://39.106.73.160:9000' + path 
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
